import baseController from './baseController';

import {Router, Get} from '../decorators/router';
// @ts-ignore
@Router("/user")
export default class extends baseController {

    @Get("/add")
    async add() {
        return this.success({a: 1});
    }

    @Get("/list/:id")
    list() {
        return this.success({list: "im list func"});
    }

    edit(): object {
        return {ok: "a"};
    }
}